package com.atlzk.renting.order.service.impl;

import com.atlzk.common.entity.order.LeaseOrderEntity;
import com.atlzk.common.utils.PageUtils;
import com.atlzk.common.utils.Query;
import com.atlzk.renting.order.dao.LeaseOrderDao;
import com.atlzk.renting.order.service.LeaseOrderService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("leaseOrderService")
public class LeaseOrderServiceImpl extends ServiceImpl <LeaseOrderDao, LeaseOrderEntity> implements LeaseOrderService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage <LeaseOrderEntity> page = this.page(
                new Query<LeaseOrderEntity>().getPage(params),
                new QueryWrapper <LeaseOrderEntity>()
        );

        return new PageUtils(page);
    }

}